//隐患排查
//导入request.js工具
//上级检查相关接口
import request from "@/utils/request";
//调用注册接口的函数

//工艺流程接口
//添加
export const saveSuperiorCheck = (form) => {
    return request.post("/superior-check", form);
};
//分页查询
export const querySuperiorChecks = (pageNo, pageSize) => {
    return request.get("/superior-check/page", {
        params: {
            pageNo,
            pageSize,
        },
    });
};
//根据id/name查询工艺流程
export const querySuperiorCheck = (name) => {
    return request.get("/superior-check", {
        params: {
            name
        }
    });
};
//批量删除工艺流程
export const deleteSuperiorCheck = (ids) => {
    ids = ids.join(',');
    return request.delete(`/superior-check/ids?ids=${ids}`);
};
//修改工艺流程
export const updateSuperiorCheck = (form) => {
    return request.put("/superior-check", form);
};
// -------------------------------------------------------
export const saveInvesti = (form) => {
    return request.post("/hazard-check", form);
};
//分页查询
export const queryInvestis = (pageNo, pageSize) => {
    return request.get("/hazard-check/page", {
        params: {
            pageNo,
            pageSize,
        },
    });
};
//根据id/name查询工艺流程
export const queryInvesti = (name) => {
    return request.get("/hazard-check", {
        params: {
            name
        }
    });
};
//批量删除工艺流程
export const deleteInvesti = (ids) => {
    ids = ids.join(',');
    return request.delete(`/hazard-check/ids?ids=${ids}`);
};
//修改工艺流程
export const updateInvesti = (form) => {
    return request.put("/hazard-check", form);
};